package com.bling.common.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 信息详情
 * 
 * 这个类里面要仔细的写了，里面内容很多，包括所有信息的栏目都应该包括进来
 * 
 * @author BLingSoft
 *
 */
@Entity
@Table(name="T_MESSAGEDETAIL")
public class MessageDetail implements Serializable {

	private static final long serialVersionUID = 79070123217814273L;

	private Integer id;//主键
	private Integer messagebasicid;//所属信息基本信息主键
	private String contactname;//联系人
	private String contacttype;//联系方式，手机优先
	private String others;//其他信息，需要综合表单内容保存
	private String content;//内容
	
	public MessageDetail() {
		super();
	}
	
	public MessageDetail(Integer messagebasicid, String contactname,
			String contacttype, String others, String content) {
		super();
		this.messagebasicid = messagebasicid;
		this.contactname = contactname;
		this.contacttype = contacttype;
		this.others = others;
		this.content = content;
	}

	@Id
	@GeneratedValue
	@Column
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column
	public Integer getMessagebasicid() {
		return messagebasicid;
	}
	public void setMessagebasicid(Integer messagebasicid) {
		this.messagebasicid = messagebasicid;
	}
	@Column(length=20)
	public String getContactname() {
		return contactname;
	}
	public void setContactname(String contactname) {
		this.contactname = contactname;
	}
	@Column(length=50)
	public String getContacttype() {
		return contacttype;
	}
	public void setContacttype(String contacttype) {
		this.contacttype = contacttype;
	}
	@Column(length=2000)
	public String getOthers() {
		return others;
	}
	public void setOthers(String others) {
		this.others = others;
	}
	@Column(length=5000)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
}
